﻿using OznerOA.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OznerOA.Model;

namespace OznerOA.BLL.Workflow.Request
{
    public class RequestViewBLL:RequestBaseBLL
    {
        private string UrlWorkflowNeedFinished = "/workflow/search/WFSearchTemp.jsp?wftypes=&officalType=-1&method=all&viewScope=doing&offical=&complete=0&viewcondition=0";
        public BaseResult<List<Model.Workflow>> GetAllWorkflowNeedFinished(int page)
        {
            return base.GetAllWorkflow(UrlWorkflowNeedFinished,page);
        }
        /// <summary>
        /// 提交流程
        /// </summary>
        /// <param name="flow"></param>
        /// <returns></returns>
        public BaseResult<string> ComplateFlow(Model.Workflow flow)
        {
            return new BaseResult<string>()
            {
                Code = Code.OK,
                Object = "已提交"
            };
        }

        public BaseResult<string> ReturnFlow(Model.Workflow flow)
        {
            return new BaseResult<string>()
            {
                Code = Code.OK,
                Object = "已退回"
            };
        }
    }
}
